#include <iostream>

using namespace std;

int main() {
    char szBuf[20];
    int n = 120;
    if (!cin.getline(szBuf, 6))
        cout << "读取到错误字符" << endl;
    cout << "读取到的字符" << szBuf << endl;
    cout<<"尝试读取新的字符："<<endl;
    cin >> n;
    cout << n << endl;
    cout<<"清除标记！"<<endl;
    cin.clear();
    cout<<"重新开始读取："<<endl;
    cin >> n;
    cout << n << endl;
    return 0;
}